package stock.volume;

import java.io.Serializable;
import stock.volume.*;

public class StockVolumeRecord implements Serializable {

    private String tick  ;
    private String date  ;
    private double openp  ;
    private double highp  ;
    private double lowp   ;
    private double closep ;
    private int    volume;
   
    public StockVolumeRecord() 
    {
	this( "", "", 0.0, 0.0, 0.0, 0.0, 0 );
    }
  
    public StockVolumeRecord( String tick, String date, double open, double high, 
			      double low, double close, int volume )
    {
	setTick       ( tick );
	setDate       ( date );
	setOpenPrice  ( open );
	setHighPrice  ( high );
	setLowPrice   ( low  );
	setClosePrice (close );
	setVolume     (volume);
    }

    //TICK
   
    public void setTick( String tk )
    {
	tick = tk;
    }
    public String getTick() { return tick; }

    //DATE   

    public void setDate( String dy )
    { date = dy; }
    
    public String getDate() { return date; }

    //OPEN PRICE

    public void setOpenPrice( double op )
    {
	openp = op;
    }
    public double getOpenPrice() { return openp; }
      
    //HIGH PRICE

    public void setHighPrice( double hp )
    {
	highp = hp;
    }

    public double getHighPrice() { return highp; }

    //LOW PRICE

    public void setLowPrice( double lp )
    {
	lowp = lp;
    }

    public double getLowPrice() { return lowp; }

    //CLOSE PRICE

    public void setClosePrice( double clsp )
    {
	closep = clsp;
    }

    public double getClosePrice() { return closep; }

    //VOLUME

    public void setVolume (int vum) 
    {
	volume = vum;
    }
    public int getVolume () { return volume; }

}








